<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>新增文章信息</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath }/plugins/jQuery/themes/default/easyui.css"/>
<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath }/plugins/jQuery/themes/icon.css"/>
<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath }/plugins/jQuery/demo.css"/>
<script src="${pageContext.request.contextPath }/plugins/jQuery/jquery.min.js"></script>
<script src="${pageContext.request.contextPath }/plugins/jQuery/jquery.easyui.min.js"></script>
<script src="${pageContext.request.contextPath}/plugins/jQuery/easyui-lang-zh_CN.js"></script>
<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath }/admin/css/input1.css"/>
<script type="text/javascript" charset="utf-8" src="${pageContext.request.contextPath }/ueditor/ueditor.config.js"></script>
<script type="text/javascript" charset="utf-8" src="${pageContext.request.contextPath }/ueditor/ueditor.all.min.js"> </script>
<script>
	$(function(){
//		$.messager.alert('系统消息','子栏目删除成功！');		
		// 站点类型下拉列表
		$('#articleKind').combobox({
			valueField:'value',
			textField:'text',
			editable:false,
			data:[{"value":"1","text":"公告信息"},	
				{"value":"2","text":"商品信息"},
				{"value":"3","text":"APP信息"}
				
			]
		});
		
		$("#articleKind").combobox({ disabled: true });  
		$('#articleKind').combobox("setValue",${article.ARTICLE_KIND});
		
		$("a[name='qsave']").linkbutton({text:'保存文章信息',plain:true,iconCls:'icon-ok'});
		$('#refId').textbox('readonly',true);		// 文本框禁止输入
		$('#title').textbox('readonly',true);
	});
	
	function doSub(){
		var sname=$('#sname').val();
		if($.trim(sname)==''){
			$.messager.alert('系统消息','站点名称必须输入！');
			$('#sname').textbox('textbox').focus(); 
    		return;
		}
//		$('#addStation').submit();
	}
	
	function showFonts(){
		var content=$('#content').val();
		alert(content);
	}
	
	function doSub(){
		$('#addNotice').submit();
	}
</script>
</head>

<body>
<form method="post" id="addNotice" action="${pageContext.request.contextPath }/admin/article/addArticle">
<div class="i-container" style="width:1000px;">
	<div class="i-common i-title">编辑文章信息
		<span style="color:red; margin-left:30px;">${addMsg }</span>
		<div class="i-btn"><a id="btn" href="javascript:doSub()" name="qsave"></a></div><div style=" clear:both;"></div>
	</div>
    <div class="i-common i-cnt-left">文章标题：</div><div class="i-common i-cnt-right">
    	<input name="article.ARTICLE_TITLE" id="title" class="easyui-textbox" style="width:210px;height:26px" value="${article.ARTICLE_TITLE }"/>
    </div>
    <div class="i-common i-cnt-middle">文章类型：</div>
    <div class="i-common i-cnt-right">
    	<input id="articleKind" class="easyui-textbox" style="width:210px;height:26px"/>
    	<input type="hidden" name="article.ARTICLE_KIND" value="${article.ARTICLE_KIND}"/>
    	<input type="hidden" name="article.ARTICLE_ID" value="${article.ARTICLE_ID}"/>
    	<input type="hidden" name="article.ADD_USERID" value="${article.ADD_USERID}"/>
    	<input type="hidden" name="article.CREATE_TIME" value="${article.CREATE_TIME}"/>
    	<input type="hidden" name="article.UPDATE_USERID" value="${article.UPDATE_USERID}"/>
    	<input type="hidden" name="article.UPDATE_TIME" value="${article.UPDATE_TIME}"/>
    	<input type="hidden" name="article.VISIT_URL" value="${article.VISIT_URL}"/>
    </div>
    <div class="i-common i-cnt-middle">关联编号：</div>
    <div class="i-common i-cnt-right">
    	<input name="article.REF_ID" id="refId" class="easyui-textbox" style="width:210px;height:26px" value="${article.REF_ID }"/>
    </div>
    <div style="clear:both;"></div>
    <div class="i-common i-cnt-left" style="width:99%; text-align:left;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;发布内容：</div>
    <div style="clear:both;"></div>
    <div class="i-common i-cnt-left" style="width:99%; text-align:left; background-color:white; height:auto;">
    	<textarea id="editor" style="width:100%;" name="article.CONTENT">${article.CONTENT }</textarea>
    	<script type="text/javascript"> 
    		UE.getEditor("editor");
    	</script>
    </div>
    <div style="clear:both;"></div>
</div>

</form>
</body>
</html>
